import {Injectable} from '@angular/core';
import {BaseHttpService} from '../base-http.service';
import {Observable} from 'rxjs';

export interface MsdsOthers {
  msdsEntprId?: number;
  id?: number;
  writeFaxDesc: string;
  abbreviation: string;
  disclaimer: string;
  trainAdvise: string;
  referFile: string;
}


@Injectable({
  providedIn: 'root'
})
export class MsdsOthersHttpService {

  constructor(public http: BaseHttpService) {
  }


  /*新增msdsOthers 信息*/
  public addMsdsOthers(param: MsdsOthers): Observable<number> {
    return this.http.post('/msdsOther', param, {needSuccessInfo: true});
  }

  /*修改msdsOthers信息*/
  public editMsdsOthers(param: MsdsOthers): Observable<void> {
    return this.http.put('/msdsOther', param, {needSuccessInfo: true});
  }

  /*查询msdsOthers详情*/
  public getMsdsOthersDetail(msdsEntprId: number): Observable<MsdsOthers> {
    return this.http.get('/msdsOther/' + msdsEntprId);
  }


}
